package com.zuo.demo01.service;


import com.zuo.demo01.pojo.Blog;

import java.util.List;
import java.util.Map;

public interface BlogService {


    public List<Blog> findAll(Map<String,Object> map);

    public List<Blog> findAllPub(Map<String,Object> map);

    public List<Blog> findByKey(Map<String,Object> map);

    public List<Blog> findByType(int type,int limit);

    public List<Blog> findByCategory(Map<String,Object> map);

    public List<Blog> findByTag(Map<String,Object> map);

    public List<Blog> getAll();

    public Blog getById(int id);

    public Blog getByIdInHTML(int id);

    public int count();

    public int countByPub();

    public int countByKey(String key);

    public int countByCategory(String categoryName);

    public int countByTag(String tag);

    public String insert(Map<String,Object> map);


    public String update(Map<String,Object> map);


    public int addViews(int id);

    public int delete(int id);

}
